<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: Flex Controller Area Network (FlexCAN)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__flexcan.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">Modules</a> &#124;
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">Flex Controller Area Network (FlexCAN)</div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for Flex Controller Area Network (FlexCAN):</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<center><table><tr><td><div class="center"><iframe scrolling="no" frameborder="0" src="group__flexcan.svg" width="304" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group__flexcan__driver"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan__driver.html">FlexCAN driver</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structflexcan__frame__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a></td></tr>
<tr class="memdesc:structflexcan__frame__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN message frame structure.  <a href="group__flexcan.html#structflexcan__frame__t">More...</a><br /></td></tr>
<tr class="separator:structflexcan__frame__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structflexcan__frame__t_8____unnamed____"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__frame__t_8____unnamed____">flexcan_frame_t.__unnamed__</a></td></tr>
<tr class="separator:structflexcan__frame__t_8____unnamed____"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structflexcan__frame__t_8____unnamed_____8____unnamed____"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__frame__t_8____unnamed_____8____unnamed____">flexcan_frame_t.__unnamed__.__unnamed__</a></td></tr>
<tr class="separator:structflexcan__frame__t_8____unnamed_____8____unnamed____"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structflexcan__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__config__t">flexcan_config_t</a></td></tr>
<tr class="memdesc:structflexcan__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN module configuration structure.  <a href="group__flexcan.html#structflexcan__config__t">More...</a><br /></td></tr>
<tr class="separator:structflexcan__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structflexcan__timing__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__timing__config__t">flexcan_timing_config_t</a></td></tr>
<tr class="memdesc:structflexcan__timing__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN protocol timing characteristic configuration structure.  <a href="group__flexcan.html#structflexcan__timing__config__t">More...</a><br /></td></tr>
<tr class="separator:structflexcan__timing__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structflexcan__rx__mb__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__rx__mb__config__t">flexcan_rx_mb_config_t</a></td></tr>
<tr class="memdesc:structflexcan__rx__mb__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN Receive Message Buffer configuration structure.  <a href="group__flexcan.html#structflexcan__rx__mb__config__t">More...</a><br /></td></tr>
<tr class="separator:structflexcan__rx__mb__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structflexcan__rx__fifo__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__rx__fifo__config__t">flexcan_rx_fifo_config_t</a></td></tr>
<tr class="memdesc:structflexcan__rx__fifo__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN Rx FIFO configure structure.  <a href="group__flexcan.html#structflexcan__rx__fifo__config__t">More...</a><br /></td></tr>
<tr class="separator:structflexcan__rx__fifo__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structflexcan__mb__transfer__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__mb__transfer__t">flexcan_mb_transfer_t</a></td></tr>
<tr class="memdesc:structflexcan__mb__transfer__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN Message Buffer transfer.  <a href="group__flexcan.html#structflexcan__mb__transfer__t">More...</a><br /></td></tr>
<tr class="separator:structflexcan__mb__transfer__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structflexcan__fifo__transfer__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#structflexcan__fifo__transfer__t">flexcan_fifo_transfer_t</a></td></tr>
<tr class="memdesc:structflexcan__fifo__transfer__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN Rx FIFO transfer.  <a href="group__flexcan.html#structflexcan__fifo__transfer__t">More...</a><br /></td></tr>
<tr class="separator:structflexcan__fifo__transfer__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:struct__flexcan__handle"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#struct__flexcan__handle">flexcan_handle_t</a></td></tr>
<tr class="memdesc:struct__flexcan__handle"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN handle structure.  <a href="group__flexcan.html#struct__flexcan__handle">More...</a><br /></td></tr>
<tr class="separator:struct__flexcan__handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga4df171e52fae160f2e48257b864ce2e9"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga4df171e52fae160f2e48257b864ce2e9">flexcan_transfer_callback_t</a>) (CAN_Type *base, flexcan_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, uint32_t result, void *userData)</td></tr>
<tr class="memdesc:ga4df171e52fae160f2e48257b864ce2e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN transfer callback function.  <a href="#ga4df171e52fae160f2e48257b864ce2e9">More...</a><br /></td></tr>
<tr class="separator:ga4df171e52fae160f2e48257b864ce2e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga73b6375147061a131ec4d3959f2b950b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga73b6375147061a131ec4d3959f2b950b">_flexcan_status</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba0080617424605a0a0a95e3333f24b3e4">kStatus_FLEXCAN_TxBusy</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 0), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba91fc36f54041f079bd0cbec9dedac200">kStatus_FLEXCAN_TxIdle</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 1), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba1faddda6dd8b232ad54604365e2d605d">kStatus_FLEXCAN_TxSwitchToRx</a>, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba5b713aab29b9accd29aa58d8dc4447e7">kStatus_FLEXCAN_RxBusy</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 3), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950bae2b4dcba97c6f468046168046135af67">kStatus_FLEXCAN_RxIdle</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 4), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba8e2d4031323b8747c5d74c6275e3b9f1">kStatus_FLEXCAN_RxOverflow</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 5), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba74adab69bc91962510c1cc1faa96220d">kStatus_FLEXCAN_RxFifoBusy</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 6), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba6b1ace2daae9aa209f6c57e8e1dae2f5">kStatus_FLEXCAN_RxFifoIdle</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 7), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba257602d134fb16ca03908ba7ef9c5e0f">kStatus_FLEXCAN_RxFifoOverflow</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 8), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba49de45608b1bef73b58f59b5aac6e459">kStatus_FLEXCAN_RxFifoWarning</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 0), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba08579ac6bdc65a85046b33cd0d5d636a">kStatus_FLEXCAN_ErrorStatus</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 10), 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga73b6375147061a131ec4d3959f2b950ba853b75a2a57e9d380ee85ab69da946cc">kStatus_FLEXCAN_UnHandled</a> = MAKE_STATUS(kStatusGroup_FLEXCAN, 11)
<br />
 }<tr class="memdesc:ga73b6375147061a131ec4d3959f2b950b"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN transfer status.  <a href="group__flexcan.html#ga73b6375147061a131ec4d3959f2b950b">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga73b6375147061a131ec4d3959f2b950b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga89e76f77a571693c1adeec47796c97df"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga89e76f77a571693c1adeec47796c97df">flexcan_frame_format_t</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga89e76f77a571693c1adeec47796c97dfa82e576bc13cb647a948eed52564d109b">kFLEXCAN_FrameFormatStandard</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga89e76f77a571693c1adeec47796c97dfa2acf770880d063c0522a5cc762ab2638">kFLEXCAN_FrameFormatExtend</a> = 0x1U
<br />
 }<tr class="memdesc:ga89e76f77a571693c1adeec47796c97df"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN frame format.  <a href="group__flexcan.html#ga89e76f77a571693c1adeec47796c97df">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga89e76f77a571693c1adeec47796c97df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacec96742e2b0b51a5bf3246bfc57a455"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gacec96742e2b0b51a5bf3246bfc57a455">flexcan_frame_type_t</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggacec96742e2b0b51a5bf3246bfc57a455a650a94706925910caaaef592a99f77b3">kFLEXCAN_FrameTypeData</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggacec96742e2b0b51a5bf3246bfc57a455ab8f92265dc2dadff64259080c78fa35e">kFLEXCAN_FrameTypeRemote</a> = 0x1U
<br />
 }<tr class="memdesc:gacec96742e2b0b51a5bf3246bfc57a455"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN frame type.  <a href="group__flexcan.html#gacec96742e2b0b51a5bf3246bfc57a455">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gacec96742e2b0b51a5bf3246bfc57a455"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa0b3ac1e2e7416950b82014d2a2b40ee"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gaa0b3ac1e2e7416950b82014d2a2b40ee">flexcan_clock_source_t</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggaa0b3ac1e2e7416950b82014d2a2b40eead9cb66012e8d50e9ee3e154a36c1cff1">kFLEXCAN_ClkSrcOsc</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggaa0b3ac1e2e7416950b82014d2a2b40eea962bcf8760c6a23e054980b1d0c5a922">kFLEXCAN_ClkSrcPeri</a> = 0x1U
<br />
 }<tr class="memdesc:gaa0b3ac1e2e7416950b82014d2a2b40ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN clock source.  <a href="group__flexcan.html#gaa0b3ac1e2e7416950b82014d2a2b40ee">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gaa0b3ac1e2e7416950b82014d2a2b40ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1b8c38cce54aff2f24b6cd45da80f353"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga1b8c38cce54aff2f24b6cd45da80f353">flexcan_rx_fifo_filter_type_t</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga1b8c38cce54aff2f24b6cd45da80f353a1791608b19ef6a27483f55fee614f764">kFLEXCAN_RxFifoFilterTypeA</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga1b8c38cce54aff2f24b6cd45da80f353a0989630ff89813979a12fd56e772073c">kFLEXCAN_RxFifoFilterTypeB</a>, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga1b8c38cce54aff2f24b6cd45da80f353ae4f020795b2ffb38eafb9a3648270a19">kFLEXCAN_RxFifoFilterTypeC</a>, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga1b8c38cce54aff2f24b6cd45da80f353a6b221467793b4268bf84cd475b92780d">kFLEXCAN_RxFifoFilterTypeD</a> = 0x3U
<br />
 }<tr class="memdesc:ga1b8c38cce54aff2f24b6cd45da80f353"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN Rx Fifo Filter type.  <a href="group__flexcan.html#ga1b8c38cce54aff2f24b6cd45da80f353">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga1b8c38cce54aff2f24b6cd45da80f353"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5d139af23e8c1094b39d1cf26d85271b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga5d139af23e8c1094b39d1cf26d85271b">flexcan_rx_fifo_priority_t</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga5d139af23e8c1094b39d1cf26d85271babc83bc44026aa8c9eef2a4b259e05ecd">kFLEXCAN_RxFifoPrioLow</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga5d139af23e8c1094b39d1cf26d85271bac2b9710c6248536f992bdd832d05f8cf">kFLEXCAN_RxFifoPrioHigh</a> = 0x1U
<br />
 }<tr class="memdesc:ga5d139af23e8c1094b39d1cf26d85271b"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN Rx FIFO priority.  <a href="group__flexcan.html#ga5d139af23e8c1094b39d1cf26d85271b">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga5d139af23e8c1094b39d1cf26d85271b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga339a68a513c218f67756e2a04985428e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga339a68a513c218f67756e2a04985428e">_flexcan_interrupt_enable</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga339a68a513c218f67756e2a04985428eac07643ed5772e0666315c8cf38d1912a">kFLEXCAN_BusOffInterruptEnable</a> = CAN_CTRL1_BOFFMSK_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga339a68a513c218f67756e2a04985428ea1943b187ec63f3a34660d5c48ada5cf6">kFLEXCAN_ErrorInterruptEnable</a> = CAN_CTRL1_ERRMSK_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga339a68a513c218f67756e2a04985428ea776a58431fab2cca17e5b859bbd25d8e">kFLEXCAN_RxWarningInterruptEnable</a> = CAN_CTRL1_RWRNMSK_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga339a68a513c218f67756e2a04985428eaa91344d65339ed9f0b2801f772c8cf90">kFLEXCAN_TxWarningInterruptEnable</a> = CAN_CTRL1_TWRNMSK_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#gga339a68a513c218f67756e2a04985428eaab59629e2da9dc184add56eebe85bf5f">kFLEXCAN_WakeUpInterruptEnable</a> = CAN_MCR_WAKMSK_MASK
<br />
 }<tr class="memdesc:ga339a68a513c218f67756e2a04985428e"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN interrupt configuration structure, default settings all disabled.  <a href="group__flexcan.html#ga339a68a513c218f67756e2a04985428e">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga339a68a513c218f67756e2a04985428e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafcf014e17652c04821de5596f5c4f247"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gafcf014e17652c04821de5596f5c4f247">_flexcan_flags</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247a5200e04525a33c3d17abb0902423fd65">kFLEXCAN_SynchFlag</a> = CAN_ESR1_SYNCH_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247aeb17959193db08c88ebe1acec32bf5a9">kFLEXCAN_TxWarningIntFlag</a> = CAN_ESR1_TWRNINT_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247a1f2987e32d2889a23140b20e72405973">kFLEXCAN_RxWarningIntFlag</a> = CAN_ESR1_RWRNINT_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247ad2f12389f5b32bbb7d84c9718d4e2e8b">kFLEXCAN_TxErrorWarningFlag</a> = CAN_ESR1_TXWRN_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247acc85a7f4c13805e8a0ec9e5cf0f6b7e2">kFLEXCAN_RxErrorWarningFlag</a> = CAN_ESR1_RXWRN_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247a763c9217bed2fa7c5c1f12e2459f61f0">kFLEXCAN_IdleFlag</a> = CAN_ESR1_IDLE_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247a3ca2089ad4230485f0351c718a962d2e">kFLEXCAN_FaultConfinementFlag</a> = CAN_ESR1_FLTCONF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247a03ff01b35c352d48288a60ba686bb94b">kFLEXCAN_TransmittingFlag</a> = CAN_ESR1_TX_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247a26c976e3327f4c08e60eb4a980ecb44e">kFLEXCAN_ReceivingFlag</a> = CAN_ESR1_RX_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247ab3db871ba55aea71f9fb6a9eda3d4480">kFLEXCAN_BusOffIntFlag</a> = CAN_ESR1_BOFFINT_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247afa70d0ee5c86b648e7da37d16a1e9cfe">kFLEXCAN_ErrorIntFlag</a> = CAN_ESR1_ERRINT_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247abb5e5668b2be3d78e30c7f666b402816">kFLEXCAN_WakeUpIntFlag</a> = CAN_ESR1_WAKINT_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggafcf014e17652c04821de5596f5c4f247a9dec4cce221940055dc269cb06e9e0f1">kFLEXCAN_ErrorFlag</a>
<br />
 }<tr class="memdesc:gafcf014e17652c04821de5596f5c4f247"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN status flags.  <a href="group__flexcan.html#gafcf014e17652c04821de5596f5c4f247">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gafcf014e17652c04821de5596f5c4f247"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae49fa3b7177a77bb6441a251d7d1c04b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gae49fa3b7177a77bb6441a251d7d1c04b">_flexcan_error_flags</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggae49fa3b7177a77bb6441a251d7d1c04baf29ecd380ebf9e3c2ba942d1b59afd20">kFLEXCAN_StuffingError</a> = CAN_ESR1_STFERR_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggae49fa3b7177a77bb6441a251d7d1c04baa2a20d23736022638dff3fa399a28228">kFLEXCAN_FormError</a> = CAN_ESR1_FRMERR_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggae49fa3b7177a77bb6441a251d7d1c04bab668e1723ddbd49091b8fd40ff58d0de">kFLEXCAN_CrcError</a> = CAN_ESR1_CRCERR_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggae49fa3b7177a77bb6441a251d7d1c04ba2e89a0bda4c49a0b3b186c4f53b66a21">kFLEXCAN_AckError</a> = CAN_ESR1_ACKERR_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggae49fa3b7177a77bb6441a251d7d1c04bafbb466f580b3a3b5fac17856f018ada8">kFLEXCAN_Bit0Error</a> = CAN_ESR1_BIT0ERR_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggae49fa3b7177a77bb6441a251d7d1c04bac507066e62503970fbc6efd5d573f055">kFLEXCAN_Bit1Error</a> = CAN_ESR1_BIT1ERR_MASK
<br />
 }<tr class="memdesc:gae49fa3b7177a77bb6441a251d7d1c04b"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN error status flags.  <a href="group__flexcan.html#gae49fa3b7177a77bb6441a251d7d1c04b">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gae49fa3b7177a77bb6441a251d7d1c04b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacbdc64ada450fa6e8428aca3bcc7d8a9"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gacbdc64ada450fa6e8428aca3bcc7d8a9">_flexcan_rx_fifo_flags</a> { <br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggacbdc64ada450fa6e8428aca3bcc7d8a9aaea98e3313f0b74f0485fe39425fdb79">kFLEXCAN_RxFifoOverflowFlag</a> = CAN_IFLAG1_BUF7I_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggacbdc64ada450fa6e8428aca3bcc7d8a9aa1faa3742f1c027714f92db80310e33f">kFLEXCAN_RxFifoWarningFlag</a> = CAN_IFLAG1_BUF6I_MASK, 
<br />
&#160;&#160;<a class="el" href="group__flexcan.html#ggacbdc64ada450fa6e8428aca3bcc7d8a9a0d78a5c058c0908b5a0f43997046965f">kFLEXCAN_RxFifoFrameAvlFlag</a> = CAN_IFLAG1_BUF5I_MASK
<br />
 }<tr class="memdesc:gacbdc64ada450fa6e8428aca3bcc7d8a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN Rx FIFO status flags.  <a href="group__flexcan.html#gacbdc64ada450fa6e8428aca3bcc7d8a9">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gacbdc64ada450fa6e8428aca3bcc7d8a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Initialization and deinitialization</h2></td></tr>
<tr class="memitem:ga8d7ebf086fb294130fa30a0f75a5f340"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga8d7ebf086fb294130fa30a0f75a5f340">FLEXCAN_Init</a> (CAN_Type *base, const <a class="el" href="group__flexcan.html#structflexcan__config__t">flexcan_config_t</a> *config, uint32_t sourceClock_Hz)</td></tr>
<tr class="memdesc:ga8d7ebf086fb294130fa30a0f75a5f340"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a FlexCAN instance.  <a href="#ga8d7ebf086fb294130fa30a0f75a5f340">More...</a><br /></td></tr>
<tr class="separator:ga8d7ebf086fb294130fa30a0f75a5f340"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0629aa8318a3e515dfb168004e0ce656"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga0629aa8318a3e515dfb168004e0ce656">FLEXCAN_Deinit</a> (CAN_Type *base)</td></tr>
<tr class="memdesc:ga0629aa8318a3e515dfb168004e0ce656"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes a FlexCAN instance.  <a href="#ga0629aa8318a3e515dfb168004e0ce656">More...</a><br /></td></tr>
<tr class="separator:ga0629aa8318a3e515dfb168004e0ce656"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4eafdb971a92f517c69a80c15a216342"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga4eafdb971a92f517c69a80c15a216342">FLEXCAN_GetDefaultConfig</a> (<a class="el" href="group__flexcan.html#structflexcan__config__t">flexcan_config_t</a> *config)</td></tr>
<tr class="memdesc:ga4eafdb971a92f517c69a80c15a216342"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the default configuration structure.  <a href="#ga4eafdb971a92f517c69a80c15a216342">More...</a><br /></td></tr>
<tr class="separator:ga4eafdb971a92f517c69a80c15a216342"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Configuration.</h2></td></tr>
<tr class="memitem:ga481abb41cf9d87c7b4a901dd61e34f82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga481abb41cf9d87c7b4a901dd61e34f82">FLEXCAN_SetTimingConfig</a> (CAN_Type *base, const <a class="el" href="group__flexcan.html#structflexcan__timing__config__t">flexcan_timing_config_t</a> *config)</td></tr>
<tr class="memdesc:ga481abb41cf9d87c7b4a901dd61e34f82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setting FlexCAN protocol timing characteristic.  <a href="#ga481abb41cf9d87c7b4a901dd61e34f82">More...</a><br /></td></tr>
<tr class="separator:ga481abb41cf9d87c7b4a901dd61e34f82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga188e40d55493a20e7e11215d23369f94"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga188e40d55493a20e7e11215d23369f94">FlEXCAN_SetRxMbGlobalMask</a> (CAN_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga188e40d55493a20e7e11215d23369f94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the FlexCAN Receive Message Buffer Global Mask.  <a href="#ga188e40d55493a20e7e11215d23369f94">More...</a><br /></td></tr>
<tr class="separator:ga188e40d55493a20e7e11215d23369f94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6916d2efb57c72bc39450728d63eda2e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga6916d2efb57c72bc39450728d63eda2e">FlEXCAN_SetRxFifoGlobalMask</a> (CAN_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga6916d2efb57c72bc39450728d63eda2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the FlexCAN Receive FIFO Global Mask.  <a href="#ga6916d2efb57c72bc39450728d63eda2e">More...</a><br /></td></tr>
<tr class="separator:ga6916d2efb57c72bc39450728d63eda2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4e097e264335f27dc55f20c4eb836a94"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga4e097e264335f27dc55f20c4eb836a94">FlEXCAN_SetRxIndividualMask</a> (CAN_Type *base, uint8_t maskIdx, uint32_t mask)</td></tr>
<tr class="memdesc:ga4e097e264335f27dc55f20c4eb836a94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the FlexCAN Receive Individual Mask.  <a href="#ga4e097e264335f27dc55f20c4eb836a94">More...</a><br /></td></tr>
<tr class="separator:ga4e097e264335f27dc55f20c4eb836a94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadbf35cc05ed0d9a73eda5ac4fbb30ff0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gadbf35cc05ed0d9a73eda5ac4fbb30ff0">FLEXCAN_SetTxMbConfig</a> (CAN_Type *base, uint8_t mbIdx, bool enable)</td></tr>
<tr class="memdesc:gadbf35cc05ed0d9a73eda5ac4fbb30ff0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure a FlexCAN Transmit Message Buffer.  <a href="#gadbf35cc05ed0d9a73eda5ac4fbb30ff0">More...</a><br /></td></tr>
<tr class="separator:gadbf35cc05ed0d9a73eda5ac4fbb30ff0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf335daf0156fab50571e55d2898bccb2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gaf335daf0156fab50571e55d2898bccb2">FLEXCAN_SetRxMbConfig</a> (CAN_Type *base, uint8_t mbIdx, const <a class="el" href="group__flexcan.html#structflexcan__rx__mb__config__t">flexcan_rx_mb_config_t</a> *config, bool enable)</td></tr>
<tr class="memdesc:gaf335daf0156fab50571e55d2898bccb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure a FlexCAN Receive Message Buffer.  <a href="#gaf335daf0156fab50571e55d2898bccb2">More...</a><br /></td></tr>
<tr class="separator:gaf335daf0156fab50571e55d2898bccb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga40140a86bc8481442286a61aa668d508"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga40140a86bc8481442286a61aa668d508">FlEXCAN_SetRxFifoConfig</a> (CAN_Type *base, const <a class="el" href="group__flexcan.html#structflexcan__rx__fifo__config__t">flexcan_rx_fifo_config_t</a> *config, bool enable)</td></tr>
<tr class="memdesc:ga40140a86bc8481442286a61aa668d508"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure the FlexCAN Rx FIFO.  <a href="#ga40140a86bc8481442286a61aa668d508">More...</a><br /></td></tr>
<tr class="separator:ga40140a86bc8481442286a61aa668d508"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Status</h2></td></tr>
<tr class="memitem:ga92ba1ed8d52757a597eb45fa5bf4329a"><td class="memItemLeft" align="right" valign="top">static uint64_t uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>mask</b></td></tr>
<tr class="separator:ga92ba1ed8d52757a597eb45fa5bf4329a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabd79cd2ea323ee102fca40dcadc2d9f8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gabd79cd2ea323ee102fca40dcadc2d9f8"></a>
base&#160;</td><td class="memItemRight" valign="bottom"><b>IFLAG2</b> = (uint32_t)(mask &gt;&gt; 32)</td></tr>
<tr class="separator:gabd79cd2ea323ee102fca40dcadc2d9f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9fbf5a37e9b452100d77bec25e7b1ad9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9fbf5a37e9b452100d77bec25e7b1ad9"></a>
base&#160;</td><td class="memItemRight" valign="bottom"><b>IFLAG1</b> = mask</td></tr>
<tr class="separator:ga9fbf5a37e9b452100d77bec25e7b1ad9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46217b1ae979c927ae59b98fbbb181e3"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga46217b1ae979c927ae59b98fbbb181e3">FLEXCAN_GetStatusFlags</a> (CAN_Type *base)</td></tr>
<tr class="memdesc:ga46217b1ae979c927ae59b98fbbb181e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get FlexCAN module interrupt flags.  <a href="#ga46217b1ae979c927ae59b98fbbb181e3">More...</a><br /></td></tr>
<tr class="separator:ga46217b1ae979c927ae59b98fbbb181e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gace1fd2bc62b4f7c71d1fce292adf3b3a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gace1fd2bc62b4f7c71d1fce292adf3b3a">FLEXCAN_ClearStatusFlags</a> (CAN_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gace1fd2bc62b4f7c71d1fce292adf3b3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear status flags with provide mask.  <a href="#gace1fd2bc62b4f7c71d1fce292adf3b3a">More...</a><br /></td></tr>
<tr class="separator:gace1fd2bc62b4f7c71d1fce292adf3b3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6b042a7d31e057b96e16954d7342c9b4"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga6b042a7d31e057b96e16954d7342c9b4">FlEXCAN_GetBusErrCount</a> (CAN_Type *base, uint8_t *txErrBuf, uint8_t *rxErrBuf)</td></tr>
<tr class="memdesc:ga6b042a7d31e057b96e16954d7342c9b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the FlexCAN Bus Error Counter value.  <a href="#ga6b042a7d31e057b96e16954d7342c9b4">More...</a><br /></td></tr>
<tr class="separator:ga6b042a7d31e057b96e16954d7342c9b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab6ed94b8a36d174fb30d3256e3b2d975"><td class="memItemLeft" align="right" valign="top">static uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gab6ed94b8a36d174fb30d3256e3b2d975">FLEXCAN_GetMbStatusFlags</a> (CAN_Type *base, uint64_t mask) static inline uint32_t FLEXCAN_GetMbStatusFlags(CAN_Type *base</td></tr>
<tr class="memdesc:gab6ed94b8a36d174fb30d3256e3b2d975"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get FlexCAN Message Buffer interrupt flags.  <a href="#gab6ed94b8a36d174fb30d3256e3b2d975">More...</a><br /></td></tr>
<tr class="separator:gab6ed94b8a36d174fb30d3256e3b2d975"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga114cd7c69847b481f3d9eafbcec0562c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga114cd7c69847b481f3d9eafbcec0562c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>return</b> (base-&gt;IFLAG1 &amp;mask)</td></tr>
<tr class="separator:ga114cd7c69847b481f3d9eafbcec0562c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga800056b1b1ee4748d086329535e78274"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga800056b1b1ee4748d086329535e78274">FLEXCAN_ClearMbStatusFlags</a> (CAN_Type *base, uint64_t mask) static inline void FLEXCAN_ClearMbStatusFlags(CAN_Type *base</td></tr>
<tr class="memdesc:ga800056b1b1ee4748d086329535e78274"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear FlexCAN Message Buffer interrupt flags.  <a href="#ga800056b1b1ee4748d086329535e78274">More...</a><br /></td></tr>
<tr class="separator:ga800056b1b1ee4748d086329535e78274"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Interrupts</h2></td></tr>
<tr class="memitem:gacfeab5baac582e88caddf6716ec1e423"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gacfeab5baac582e88caddf6716ec1e423"></a>
base&#160;</td><td class="memItemRight" valign="bottom"><b>IMASK2</b> = (uint32_t)(mask &gt;&gt; 32)</td></tr>
<tr class="separator:gacfeab5baac582e88caddf6716ec1e423"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae94702acd12e6ea065a9289397c51cb4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae94702acd12e6ea065a9289397c51cb4"></a>
base&#160;</td><td class="memItemRight" valign="bottom"><b>IMASK1</b> = mask</td></tr>
<tr class="separator:gae94702acd12e6ea065a9289397c51cb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga406e9c07a20ed89504c5716f02efb957"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga406e9c07a20ed89504c5716f02efb957">FLEXCAN_EnableInterrupts</a> (CAN_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga406e9c07a20ed89504c5716f02efb957"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable FlexCAN interrupts according to provided mask.  <a href="#ga406e9c07a20ed89504c5716f02efb957">More...</a><br /></td></tr>
<tr class="separator:ga406e9c07a20ed89504c5716f02efb957"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad6e220545b129d120fac805e8f9d82ab"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gad6e220545b129d120fac805e8f9d82ab">FLEXCAN_DisableInterrupts</a> (CAN_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gad6e220545b129d120fac805e8f9d82ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable FlexCAN interrupts according to provided mask.  <a href="#gad6e220545b129d120fac805e8f9d82ab">More...</a><br /></td></tr>
<tr class="separator:gad6e220545b129d120fac805e8f9d82ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67840cca27caffb0247dd03c5c07d6de"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga67840cca27caffb0247dd03c5c07d6de">FLEXCAN_EnableMbInterrupts</a> (CAN_Type *base, uint64_t mask) static inline void FLEXCAN_EnableMbInterrupts(CAN_Type *base</td></tr>
<tr class="memdesc:ga67840cca27caffb0247dd03c5c07d6de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable FlexCAN Message Buffer interrupts.  <a href="#ga67840cca27caffb0247dd03c5c07d6de">More...</a><br /></td></tr>
<tr class="separator:ga67840cca27caffb0247dd03c5c07d6de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga78548c5ae0c0a4b2148712ef6aa770db"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga78548c5ae0c0a4b2148712ef6aa770db">FLEXCAN_DisableMbInterrupts</a> (CAN_Type *base, uint64_t mask) static inline void FLEXCAN_DisableMbInterrupts(CAN_Type *base</td></tr>
<tr class="memdesc:ga78548c5ae0c0a4b2148712ef6aa770db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable FlexCAN Message Buffer interrupts.  <a href="#ga78548c5ae0c0a4b2148712ef6aa770db">More...</a><br /></td></tr>
<tr class="separator:ga78548c5ae0c0a4b2148712ef6aa770db"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
DMA Control</h2></td></tr>
<tr class="memitem:gab3bf9b8856103be2045e5d5050b236d6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gab3bf9b8856103be2045e5d5050b236d6">FLEXCAN_EnableRxFifoDMA</a> (CAN_Type *base, bool enable)</td></tr>
<tr class="memdesc:gab3bf9b8856103be2045e5d5050b236d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable or disable FlexCAN Rx FIFO DMA request.  <a href="#gab3bf9b8856103be2045e5d5050b236d6">More...</a><br /></td></tr>
<tr class="separator:gab3bf9b8856103be2045e5d5050b236d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5391b69b149d1e640e52807eb96a08ef"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga5391b69b149d1e640e52807eb96a08ef">FLEXCAN_GetRxFifoHeadAddr</a> (CAN_Type *base)</td></tr>
<tr class="memdesc:ga5391b69b149d1e640e52807eb96a08ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Rx FIFO Head address.  <a href="#ga5391b69b149d1e640e52807eb96a08ef">More...</a><br /></td></tr>
<tr class="separator:ga5391b69b149d1e640e52807eb96a08ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Bus Operations</h2></td></tr>
<tr class="memitem:ga20f79302d5fad90306a26b667f58fe4d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga20f79302d5fad90306a26b667f58fe4d">FLEXCAN_Enable</a> (CAN_Type *base, bool enable)</td></tr>
<tr class="memdesc:ga20f79302d5fad90306a26b667f58fe4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disable the FlexCAN module operation.  <a href="#ga20f79302d5fad90306a26b667f58fe4d">More...</a><br /></td></tr>
<tr class="separator:ga20f79302d5fad90306a26b667f58fe4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ee9d599069a88a50cb7c7a894c87c69"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga9ee9d599069a88a50cb7c7a894c87c69">FLEXCAN_WriteTxMb</a> (CAN_Type *base, uint8_t mbIdx, const <a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *txFrame)</td></tr>
<tr class="memdesc:ga9ee9d599069a88a50cb7c7a894c87c69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write FlexCAN Message to Transmit Message Buffer.  <a href="#ga9ee9d599069a88a50cb7c7a894c87c69">More...</a><br /></td></tr>
<tr class="separator:ga9ee9d599069a88a50cb7c7a894c87c69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga93600de1691b5e6d8cc01e06efee7b68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga93600de1691b5e6d8cc01e06efee7b68">FLEXCAN_ReadRxMb</a> (CAN_Type *base, uint8_t mbIdx, <a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *rxFrame)</td></tr>
<tr class="memdesc:ga93600de1691b5e6d8cc01e06efee7b68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a FlexCAN Message from Receive Message Buffer.  <a href="#ga93600de1691b5e6d8cc01e06efee7b68">More...</a><br /></td></tr>
<tr class="separator:ga93600de1691b5e6d8cc01e06efee7b68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f74840527f5e882c72746315bc06576"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga0f74840527f5e882c72746315bc06576">FlEXCAN_ReadRxFifo</a> (CAN_Type *base, <a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *rxFrame)</td></tr>
<tr class="memdesc:ga0f74840527f5e882c72746315bc06576"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a FlexCAN Message from Rx FIFO.  <a href="#ga0f74840527f5e882c72746315bc06576">More...</a><br /></td></tr>
<tr class="separator:ga0f74840527f5e882c72746315bc06576"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Transactional</h2></td></tr>
<tr class="memitem:gac360f0cee2cf46a682ae1fc2d63958d5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gac360f0cee2cf46a682ae1fc2d63958d5">FlEXCAN_TransferSendBlocking</a> (CAN_Type *base, uint8_t mbIdx, <a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *txFrame)</td></tr>
<tr class="memdesc:gac360f0cee2cf46a682ae1fc2d63958d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs a polling send transaction on the CAN bus.  <a href="#gac360f0cee2cf46a682ae1fc2d63958d5">More...</a><br /></td></tr>
<tr class="separator:gac360f0cee2cf46a682ae1fc2d63958d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafaa8ec3bde747737139a4cfc64c64c61"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gafaa8ec3bde747737139a4cfc64c64c61">FlEXCAN_TransferReceiveBlocking</a> (CAN_Type *base, uint8_t mbIdx, <a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *rxFrame)</td></tr>
<tr class="memdesc:gafaa8ec3bde747737139a4cfc64c64c61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs a polling receive transaction on the CAN bus.  <a href="#gafaa8ec3bde747737139a4cfc64c64c61">More...</a><br /></td></tr>
<tr class="separator:gafaa8ec3bde747737139a4cfc64c64c61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga59891932ccc6001fa5a67b0b5a592367"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga59891932ccc6001fa5a67b0b5a592367">FlEXCAN_TransferReceiveFifoBlocking</a> (CAN_Type *base, <a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *rxFrame)</td></tr>
<tr class="memdesc:ga59891932ccc6001fa5a67b0b5a592367"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs a polling receive transaction from Rx FIFO on the CAN bus.  <a href="#ga59891932ccc6001fa5a67b0b5a592367">More...</a><br /></td></tr>
<tr class="separator:ga59891932ccc6001fa5a67b0b5a592367"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaca661014e03aa709a753a3c499ecba19"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gaca661014e03aa709a753a3c499ecba19">FLEXCAN_TransferCreateHandle</a> (CAN_Type *base, flexcan_handle_t *handle, <a class="el" href="group__flexcan.html#ga4df171e52fae160f2e48257b864ce2e9">flexcan_transfer_callback_t</a> callback, void *userData)</td></tr>
<tr class="memdesc:gaca661014e03aa709a753a3c499ecba19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the FlexCAN handle.  <a href="#gaca661014e03aa709a753a3c499ecba19">More...</a><br /></td></tr>
<tr class="separator:gaca661014e03aa709a753a3c499ecba19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8497b4572e60df692d193e2329993e5f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga8497b4572e60df692d193e2329993e5f">FLEXCAN_TransferSendNonBlocking</a> (CAN_Type *base, flexcan_handle_t *handle, <a class="el" href="group__flexcan.html#structflexcan__mb__transfer__t">flexcan_mb_transfer_t</a> *xfer)</td></tr>
<tr class="memdesc:ga8497b4572e60df692d193e2329993e5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">send message using IRQ  <a href="#ga8497b4572e60df692d193e2329993e5f">More...</a><br /></td></tr>
<tr class="separator:ga8497b4572e60df692d193e2329993e5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f41d066f0898128a09ef2218eee6618"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga8f41d066f0898128a09ef2218eee6618">FLEXCAN_TransferReceiveNonBlocking</a> (CAN_Type *base, flexcan_handle_t *handle, <a class="el" href="group__flexcan.html#structflexcan__mb__transfer__t">flexcan_mb_transfer_t</a> *xfer)</td></tr>
<tr class="memdesc:ga8f41d066f0898128a09ef2218eee6618"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receive message using IRQ.  <a href="#ga8f41d066f0898128a09ef2218eee6618">More...</a><br /></td></tr>
<tr class="separator:ga8f41d066f0898128a09ef2218eee6618"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf47e1a71184fa3079d02a81e2def72cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gaf47e1a71184fa3079d02a81e2def72cd">FLEXCAN_TransferReceiveFifoNonBlocking</a> (CAN_Type *base, flexcan_handle_t *handle, <a class="el" href="group__flexcan.html#structflexcan__fifo__transfer__t">flexcan_fifo_transfer_t</a> *xfer)</td></tr>
<tr class="memdesc:gaf47e1a71184fa3079d02a81e2def72cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receive message from Rx FIFO using IRQ.  <a href="#gaf47e1a71184fa3079d02a81e2def72cd">More...</a><br /></td></tr>
<tr class="separator:gaf47e1a71184fa3079d02a81e2def72cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab1bb142ae44f89723de55aed6879d311"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#gab1bb142ae44f89723de55aed6879d311">FLEXCAN_TransferAbortSend</a> (CAN_Type *base, flexcan_handle_t *handle, uint8_t mbIdx)</td></tr>
<tr class="memdesc:gab1bb142ae44f89723de55aed6879d311"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abort interrupt driven message send process.  <a href="#gab1bb142ae44f89723de55aed6879d311">More...</a><br /></td></tr>
<tr class="separator:gab1bb142ae44f89723de55aed6879d311"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga96d909308b07c826b8123b45bf46e2e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga96d909308b07c826b8123b45bf46e2e8">FLEXCAN_TransferAbortReceive</a> (CAN_Type *base, flexcan_handle_t *handle, uint8_t mbIdx)</td></tr>
<tr class="memdesc:ga96d909308b07c826b8123b45bf46e2e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abort interrupt driven message receive process.  <a href="#ga96d909308b07c826b8123b45bf46e2e8">More...</a><br /></td></tr>
<tr class="separator:ga96d909308b07c826b8123b45bf46e2e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ff071840674c2b3f2e1667e5d0400ac"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga9ff071840674c2b3f2e1667e5d0400ac">FLEXCAN_TransferAbortReceiveFifo</a> (CAN_Type *base, flexcan_handle_t *handle)</td></tr>
<tr class="memdesc:ga9ff071840674c2b3f2e1667e5d0400ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abort interrupt driven message receive from Rx FIFO process.  <a href="#ga9ff071840674c2b3f2e1667e5d0400ac">More...</a><br /></td></tr>
<tr class="separator:ga9ff071840674c2b3f2e1667e5d0400ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga929cb775ee9a363295feef9cb06c2425"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flexcan.html#ga929cb775ee9a363295feef9cb06c2425">FLEXCAN_TransferHandleIRQ</a> (CAN_Type *base, flexcan_handle_t *handle)</td></tr>
<tr class="memdesc:ga929cb775ee9a363295feef9cb06c2425"><td class="mdescLeft">&#160;</td><td class="mdescRight">FlexCAN IRQ handle function.  <a href="#ga929cb775ee9a363295feef9cb06c2425">More...</a><br /></td></tr>
<tr class="separator:ga929cb775ee9a363295feef9cb06c2425"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Usage Information</h2>
<p>The KSDK provides a peripheral driver for the Flex Controller Area Network (FlexCAN) module of Kinetis devices. </p>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structflexcan__frame__t" id="structflexcan__frame__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_frame_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>FlexCAN message frame structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="af53fd73c97f6def1d11d5417d86812ef"></a>struct <a class="el" href="group__flexcan.html#structflexcan__frame__t_8____unnamed____">flexcan_frame_t</a></td>
<td class="fieldname">
__unnamed__</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac5b8f73e31a8344f27f117dd9a2e1f8d"></a>struct <a class="el" href="group__flexcan.html#structflexcan__frame__t_8____unnamed____">flexcan_frame_t</a></td>
<td class="fieldname">
__unnamed__</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a5c6b8d34d64cf247bcf7840e32017575"></a>union <a class="el" href="group__flexcan.html#unionflexcan__frame__t_8____unnamed____">flexcan_frame_t</a></td>
<td class="fieldname">
__unnamed__</td>
<td class="fielddoc">
</td></tr>
</table>

</div>
</div>
<a name="structflexcan__frame__t_8____unnamed____" id="structflexcan__frame__t_8____unnamed____"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_frame_t.__unnamed__</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"></div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a1ddcb92ade31c8fbd370001f9b29a7d9"></a>uint32_t</td>
<td class="fieldname">
format: 1</td>
<td class="fielddoc">
<p>CAN Frame Identifier(STD or EXT format). </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="acbd6011a02e001c09ec353b6b09252ea"></a>uint32_t</td>
<td class="fieldname">
idhit: 9</td>
<td class="fielddoc">
<p>CAN Rx FIFO filter hit id(This value is only used in Rx FIFO receive mode). </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2fa47f7c65fec19cc163b195725e3844"></a>uint32_t</td>
<td class="fieldname">
length: 4</td>
<td class="fielddoc">
<p>CAN frame payload length in bytes(Range: 0~8). </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aff18dd8670600ce99a023f57c80fdfca"></a>uint32_t</td>
<td class="fieldname">
reserve1: 1</td>
<td class="fielddoc">
<p>Reserved for placeholder. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ad7e6d55ba379a13d08c25d15faf2a23b"></a>uint32_t</td>
<td class="fieldname">
timestamp: 16</td>
<td class="fielddoc">
<p>FlexCAN internal Free-Running Counter Time Stamp. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a599dcce2998a6b40b1e38e8c6006cb0a"></a>uint32_t</td>
<td class="fieldname">
type: 1</td>
<td class="fielddoc">
<p>CAN Frame Type(DATA or REMOTE). </p>
</td></tr>
</table>

</div>
</div>
<a name="structflexcan__frame__t_8____unnamed_____8____unnamed____" id="structflexcan__frame__t_8____unnamed_____8____unnamed____"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_frame_t.__unnamed__.__unnamed__</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"></div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a27acadd7080ac39ef5f00fc14c2dbb90"></a>uint32_t</td>
<td class="fieldname">
dataWord0</td>
<td class="fielddoc">
<p>CAN Frame payload word0. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ace515169bbd919201e6599352ad96d62"></a>uint32_t</td>
<td class="fieldname">
dataWord1</td>
<td class="fielddoc">
<p>CAN Frame payload word1. </p>
</td></tr>
</table>

</div>
</div>
<a name="structflexcan__config__t" id="structflexcan__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>FlexCAN module configuration structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab38a80feace530cdca66134f6e3801aa"></a>uint32_t</td>
<td class="fieldname">
baudRate</td>
<td class="fielddoc">
<p>FlexCAN baud rate in bps. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a7d85a13ba707133aa5461e0f1ab92447"></a><a class="el" href="group__flexcan.html#gaa0b3ac1e2e7416950b82014d2a2b40ee">flexcan_clock_source_t</a></td>
<td class="fieldname">
clkSrc</td>
<td class="fielddoc">
<p>Clock source for FlexCAN Protocol Engine. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="adc33c54dc06ce1822fe921591e5b4d8a"></a>bool</td>
<td class="fieldname">
enableDoze</td>
<td class="fielddoc">
<p>Enable or Disable Doze Mode. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aff4f0a43027d81d83a6c3ffc92f240e5"></a>bool</td>
<td class="fieldname">
enableIndividMask</td>
<td class="fielddoc">
<p>Enable or Disable Rx Individual Mask. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a6ffda5d2889d11a222d37eafbf8f116a"></a>bool</td>
<td class="fieldname">
enableLoopBack</td>
<td class="fielddoc">
<p>Enable or Disable Loop Back Self Test Mode. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a83eb235e89e7ce5f1a5b498582768cb8"></a>bool</td>
<td class="fieldname">
enableSelfWakeup</td>
<td class="fielddoc">
<p>Enable or Disable Self Wakeup Mode. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aaada4541e434f55fc2e4c072c77bb7ea"></a>uint8_t</td>
<td class="fieldname">
maxMbNum</td>
<td class="fielddoc">
<p>The maximum number of Message Buffers used by user. </p>
</td></tr>
</table>

</div>
</div>
<a name="structflexcan__timing__config__t" id="structflexcan__timing__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_timing_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>FlexCAN protocol timing characteristic configuration structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8bc08392192fd5564b6ada173a40a2ad"></a>uint8_t</td>
<td class="fieldname">
phaseSeg1</td>
<td class="fielddoc">
<p>Phase Segment 1. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a03741a4fda471c631d7711bd119a2afb"></a>uint8_t</td>
<td class="fieldname">
phaseSeg2</td>
<td class="fielddoc">
<p>Phase Segment 2. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a9d416dccc631d569824d840325650d7f"></a>uint8_t</td>
<td class="fieldname">
preDivider</td>
<td class="fielddoc">
<p>Clock Pre-scaler Division Factor. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="adfc8ac7951cc527173d9251ca0575bff"></a>uint8_t</td>
<td class="fieldname">
propSeg</td>
<td class="fielddoc">
<p>Propagation Segment. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a926069e4b4113a7b5954176bde3992b3"></a>uint8_t</td>
<td class="fieldname">
rJumpwidth</td>
<td class="fielddoc">
<p>Re-sync Jump Width. </p>
</td></tr>
</table>

</div>
</div>
<a name="structflexcan__rx__mb__config__t" id="structflexcan__rx__mb__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_rx_mb_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>FlexCAN Receive Message Buffer configuration structure. </p>
<p>This structure is used as the parameter of <a class="el" href="group__flexcan.html#gaf335daf0156fab50571e55d2898bccb2" title="Configure a FlexCAN Receive Message Buffer. ">FLEXCAN_SetRxMbConfig()</a> function. The <a class="el" href="group__flexcan.html#gaf335daf0156fab50571e55d2898bccb2" title="Configure a FlexCAN Receive Message Buffer. ">FLEXCAN_SetRxMbConfig()</a> function is used to configure FlexCAN Receive Message Buffer. The function abort previous receiving process, clean the Message Buffer and activate the Rx Message Buffer using given Message Buffer setting. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a4ee6021c029e3cf49c941dfb9700d02c"></a><a class="el" href="group__flexcan.html#ga89e76f77a571693c1adeec47796c97df">flexcan_frame_format_t</a></td>
<td class="fieldname">
format</td>
<td class="fielddoc">
<p>CAN Frame Identifier format(Standard of Extend). </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="abaabdc509cdaba7df9f56c6c76f3ae19"></a>uint32_t</td>
<td class="fieldname">
id</td>
<td class="fielddoc">
<p>CAN Message Buffer Frame Identifier, should be set using FLEXCAN_ID_EXT() or FLEXCAN_ID_STD() macro. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a870d6ce64781a7b339e47962be8652a2"></a><a class="el" href="group__flexcan.html#gacec96742e2b0b51a5bf3246bfc57a455">flexcan_frame_type_t</a></td>
<td class="fieldname">
type</td>
<td class="fielddoc">
<p>CAN Frame Type(Data or Remote). </p>
</td></tr>
</table>

</div>
</div>
<a name="structflexcan__rx__fifo__config__t" id="structflexcan__rx__fifo__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_rx_fifo_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>FlexCAN Rx FIFO configure structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a11214c7a10ff8981572e42e9fcf3f23e"></a>uint8_t</td>
<td class="fieldname">
idFilterNum</td>
<td class="fielddoc">
<p>The quantity of filter elements. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a02786d9ef095ce8bc774e9c5fb142f13"></a>uint32_t *</td>
<td class="fieldname">
idFilterTable</td>
<td class="fielddoc">
<p>Pointer to FlexCAN Rx FIFO identifier filter table. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a1e1b7157f4852f7dabfb04d483bfb1f7"></a><a class="el" href="group__flexcan.html#ga1b8c38cce54aff2f24b6cd45da80f353">flexcan_rx_fifo_filter_type_t</a></td>
<td class="fieldname">
idFilterType</td>
<td class="fielddoc">
<p>The FlexCAN Rx FIFO Filter type. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a6b845b9d952d8f5cc1f7869f20fa4e48"></a><a class="el" href="group__flexcan.html#ga5d139af23e8c1094b39d1cf26d85271b">flexcan_rx_fifo_priority_t</a></td>
<td class="fieldname">
priority</td>
<td class="fielddoc">
<p>The FlexCAN Rx FIFO receive priority. </p>
</td></tr>
</table>

</div>
</div>
<a name="structflexcan__mb__transfer__t" id="structflexcan__mb__transfer__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_mb_transfer_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>FlexCAN Message Buffer transfer. </p>
</div><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for flexcan_mb_transfer_t:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structflexcan__mb__transfer__t__coll__graph.svg" width="160" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aa8dd8f56bc5418920fe9206c19116f26"></a><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *</td>
<td class="fieldname">
frame</td>
<td class="fielddoc">
<p>The buffer of CAN Message to be transfer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="acc8869dbbe7255ac7f14930f5054d0ac"></a>uint8_t</td>
<td class="fieldname">
mbIdx</td>
<td class="fielddoc">
<p>The index of Message buffer used to transfer Message. </p>
</td></tr>
</table>

</div>
</div>
<a name="structflexcan__fifo__transfer__t" id="structflexcan__fifo__transfer__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct flexcan_fifo_transfer_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>FlexCAN Rx FIFO transfer. </p>
</div><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Collaboration diagram for flexcan_fifo_transfer_t:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structflexcan__fifo__transfer__t__coll__graph.svg" width="158" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aa8dd8f56bc5418920fe9206c19116f26"></a><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *</td>
<td class="fieldname">
frame</td>
<td class="fielddoc">
<p>The buffer of CAN Message to be received from Rx FIFO. </p>
</td></tr>
</table>

</div>
</div>
<a name="struct__flexcan__handle" id="struct__flexcan__handle"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct _flexcan_handle</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>FlexCAN handle structure. </p>
<p>FlexCAN handle structure definition. </p>
</div><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Collaboration diagram for flexcan_handle_t:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="struct__flexcan__handle__coll__graph.svg" width="164" height="142"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a5f6d85e94314b5532279b9e0e98c7544"></a><a class="el" href="group__flexcan.html#ga4df171e52fae160f2e48257b864ce2e9">flexcan_transfer_callback_t</a></td>
<td class="fieldname">
callback</td>
<td class="fielddoc">
<p>Callback function. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a95398f3bf8821c0408b7b6ed84f9f05f"></a><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *volatile</td>
<td class="fieldname">
mbFrameBuf[CAN_WORD1_COUNT]</td>
<td class="fielddoc">
<p>The buffer for received data from Message Buffers. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a1afd9623751b137c2744f8036a168630"></a>volatile uint8_t</td>
<td class="fieldname">
mbState[CAN_WORD1_COUNT]</td>
<td class="fielddoc">
<p>Message Buffer transfer state. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a7591fd350df65f339ad7daf3bb8a7ca1"></a><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *volatile</td>
<td class="fieldname">
rxFifoFrameBuf</td>
<td class="fielddoc">
<p>The buffer for received data from Rx FIFO. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a276b0b42bf30854ba142d9959108ddae"></a>volatile uint8_t</td>
<td class="fieldname">
rxFifoState</td>
<td class="fielddoc">
<p>Rx FIFO transfer state. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2e294dd14122c554baa0665072b4ca7a"></a>void *</td>
<td class="fieldname">
userData</td>
<td class="fielddoc">
<p>FlexCAN callback function parameter. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga4df171e52fae160f2e48257b864ce2e9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* flexcan_transfer_callback_t) (CAN_Type *base, flexcan_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, uint32_t result, void *userData)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN transfer callback function. </p>
<p>The FlexCAN transfer callback will return value from the underlying layer. If the status equals to kStatus_FLEXCAN_ErrorStatus, the result parameter will be the Content of FlexCAN status register which can be used to get the working status(or error status) of FlexCAN module. If the status equals to other FlexCAN Message Buffer transfer status, the result will be the index of Message Buffer that generate transfer event. If the status equals to other FlexCAN Message Buffer transfer status, the result is meaningless and should be Ignored. </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="gae49fa3b7177a77bb6441a251d7d1c04b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#gae49fa3b7177a77bb6441a251d7d1c04b">_flexcan_error_flags</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN error status flags. </p>
<p>The FlexCAN Error Status enumerations is used to report current error of the FlexCAN bus. This enumerations should be used with KFLEXCAN_ErrorFlag in <a class="el" href="group__flexcan.html#gafcf014e17652c04821de5596f5c4f247">_flexcan_flags</a> enumerations to ditermine which error is generated. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggae49fa3b7177a77bb6441a251d7d1c04baf29ecd380ebf9e3c2ba942d1b59afd20"></a>kFLEXCAN_StuffingError&#160;</td><td class="fielddoc">
<p>Stuffing Error. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggae49fa3b7177a77bb6441a251d7d1c04baa2a20d23736022638dff3fa399a28228"></a>kFLEXCAN_FormError&#160;</td><td class="fielddoc">
<p>Form Error. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggae49fa3b7177a77bb6441a251d7d1c04bab668e1723ddbd49091b8fd40ff58d0de"></a>kFLEXCAN_CrcError&#160;</td><td class="fielddoc">
<p>Cyclic Redundancy Check Error. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggae49fa3b7177a77bb6441a251d7d1c04ba2e89a0bda4c49a0b3b186c4f53b66a21"></a>kFLEXCAN_AckError&#160;</td><td class="fielddoc">
<p>Received no ACK on transmission. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggae49fa3b7177a77bb6441a251d7d1c04bafbb466f580b3a3b5fac17856f018ada8"></a>kFLEXCAN_Bit0Error&#160;</td><td class="fielddoc">
<p>Unable to send dominant bit. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggae49fa3b7177a77bb6441a251d7d1c04bac507066e62503970fbc6efd5d573f055"></a>kFLEXCAN_Bit1Error&#160;</td><td class="fielddoc">
<p>Unable to send recessive bit. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gafcf014e17652c04821de5596f5c4f247"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#gafcf014e17652c04821de5596f5c4f247">_flexcan_flags</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN status flags. </p>
<p>This provides constants for the FlexCAN status flags for use in the FlexCAN functions. Note: The CPU read action clears FlEXCAN_ErrorFlag, therefore user need to read FlEXCAN_ErrorFlag and distinguish which error is occur using <a class="el" href="group__flexcan.html#gae49fa3b7177a77bb6441a251d7d1c04b">_flexcan_error_flags</a> enumerations. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247a5200e04525a33c3d17abb0902423fd65"></a>kFLEXCAN_SynchFlag&#160;</td><td class="fielddoc">
<p>CAN Synchronization Status. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247aeb17959193db08c88ebe1acec32bf5a9"></a>kFLEXCAN_TxWarningIntFlag&#160;</td><td class="fielddoc">
<p>Tx Warning Interrupt Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247a1f2987e32d2889a23140b20e72405973"></a>kFLEXCAN_RxWarningIntFlag&#160;</td><td class="fielddoc">
<p>Rx Warning Interrupt Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247ad2f12389f5b32bbb7d84c9718d4e2e8b"></a>kFLEXCAN_TxErrorWarningFlag&#160;</td><td class="fielddoc">
<p>Tx Error Warning Status. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247acc85a7f4c13805e8a0ec9e5cf0f6b7e2"></a>kFLEXCAN_RxErrorWarningFlag&#160;</td><td class="fielddoc">
<p>Rx Error Warning Status. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247a763c9217bed2fa7c5c1f12e2459f61f0"></a>kFLEXCAN_IdleFlag&#160;</td><td class="fielddoc">
<p>CAN IDLE Status Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247a3ca2089ad4230485f0351c718a962d2e"></a>kFLEXCAN_FaultConfinementFlag&#160;</td><td class="fielddoc">
<p>Fault Confinement State Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247a03ff01b35c352d48288a60ba686bb94b"></a>kFLEXCAN_TransmittingFlag&#160;</td><td class="fielddoc">
<p>FlexCAN In Transmission Status. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247a26c976e3327f4c08e60eb4a980ecb44e"></a>kFLEXCAN_ReceivingFlag&#160;</td><td class="fielddoc">
<p>FlexCAN In Reception Status. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247ab3db871ba55aea71f9fb6a9eda3d4480"></a>kFLEXCAN_BusOffIntFlag&#160;</td><td class="fielddoc">
<p>Bus Off Interrupt Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247afa70d0ee5c86b648e7da37d16a1e9cfe"></a>kFLEXCAN_ErrorIntFlag&#160;</td><td class="fielddoc">
<p>Error Interrupt Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247abb5e5668b2be3d78e30c7f666b402816"></a>kFLEXCAN_WakeUpIntFlag&#160;</td><td class="fielddoc">
<p>Wake-Up Interrupt Flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggafcf014e17652c04821de5596f5c4f247a9dec4cce221940055dc269cb06e9e0f1"></a>kFLEXCAN_ErrorFlag&#160;</td><td class="fielddoc">
<p>All FlexCAN Error Status. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga339a68a513c218f67756e2a04985428e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#ga339a68a513c218f67756e2a04985428e">_flexcan_interrupt_enable</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN interrupt configuration structure, default settings all disabled. </p>
<p>This structure contains the settings for all of the FlexCAN Module interrupt configurations. Note: FlexCAN Message Buffers and Rx FIFO have their own interrupts. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga339a68a513c218f67756e2a04985428eac07643ed5772e0666315c8cf38d1912a"></a>kFLEXCAN_BusOffInterruptEnable&#160;</td><td class="fielddoc">
<p>Bus Off interrupt. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga339a68a513c218f67756e2a04985428ea1943b187ec63f3a34660d5c48ada5cf6"></a>kFLEXCAN_ErrorInterruptEnable&#160;</td><td class="fielddoc">
<p>Error interrupt. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga339a68a513c218f67756e2a04985428ea776a58431fab2cca17e5b859bbd25d8e"></a>kFLEXCAN_RxWarningInterruptEnable&#160;</td><td class="fielddoc">
<p>Rx Warning interrupt. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga339a68a513c218f67756e2a04985428eaa91344d65339ed9f0b2801f772c8cf90"></a>kFLEXCAN_TxWarningInterruptEnable&#160;</td><td class="fielddoc">
<p>Tx Warning interrupt. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga339a68a513c218f67756e2a04985428eaab59629e2da9dc184add56eebe85bf5f"></a>kFLEXCAN_WakeUpInterruptEnable&#160;</td><td class="fielddoc">
<p>Wake Up interrupt. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gacbdc64ada450fa6e8428aca3bcc7d8a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#gacbdc64ada450fa6e8428aca3bcc7d8a9">_flexcan_rx_fifo_flags</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN Rx FIFO status flags. </p>
<p>The FlexCAN Rx FIFO Status enumerations is used to ditermine the status of Rx FIFO. Because Rx FIFO occupy the MB0 ~ MB7(Rx Fifo filter will also occupy more Message Buffer space), Rx FIFO status flags are maped to corresponding Message Buffer status flags. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggacbdc64ada450fa6e8428aca3bcc7d8a9aaea98e3313f0b74f0485fe39425fdb79"></a>kFLEXCAN_RxFifoOverflowFlag&#160;</td><td class="fielddoc">
<p>Rx FIFO overflow flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggacbdc64ada450fa6e8428aca3bcc7d8a9aa1faa3742f1c027714f92db80310e33f"></a>kFLEXCAN_RxFifoWarningFlag&#160;</td><td class="fielddoc">
<p>Rx FIFO almost full flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggacbdc64ada450fa6e8428aca3bcc7d8a9a0d78a5c058c0908b5a0f43997046965f"></a>kFLEXCAN_RxFifoFrameAvlFlag&#160;</td><td class="fielddoc">
<p>Frames available in Rx FIFO flag. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga73b6375147061a131ec4d3959f2b950b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#ga73b6375147061a131ec4d3959f2b950b">_flexcan_status</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN transfer status. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba0080617424605a0a0a95e3333f24b3e4"></a>kStatus_FLEXCAN_TxBusy&#160;</td><td class="fielddoc">
<p>Tx Message Buffer is Busy. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba91fc36f54041f079bd0cbec9dedac200"></a>kStatus_FLEXCAN_TxIdle&#160;</td><td class="fielddoc">
<p>Tx Message Buffer is Idle. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba1faddda6dd8b232ad54604365e2d605d"></a>kStatus_FLEXCAN_TxSwitchToRx&#160;</td><td class="fielddoc">
<p>Remote Message is send out and Message buffer changed to Receive one. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba5b713aab29b9accd29aa58d8dc4447e7"></a>kStatus_FLEXCAN_RxBusy&#160;</td><td class="fielddoc">
<p>Rx Message Buffer is Busy. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950bae2b4dcba97c6f468046168046135af67"></a>kStatus_FLEXCAN_RxIdle&#160;</td><td class="fielddoc">
<p>Rx Message Buffer is Idle. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba8e2d4031323b8747c5d74c6275e3b9f1"></a>kStatus_FLEXCAN_RxOverflow&#160;</td><td class="fielddoc">
<p>Rx Message Buffer is Overflowed. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba74adab69bc91962510c1cc1faa96220d"></a>kStatus_FLEXCAN_RxFifoBusy&#160;</td><td class="fielddoc">
<p>Rx Message FIFO is Busy. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba6b1ace2daae9aa209f6c57e8e1dae2f5"></a>kStatus_FLEXCAN_RxFifoIdle&#160;</td><td class="fielddoc">
<p>Rx Message FIFO is Idle. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba257602d134fb16ca03908ba7ef9c5e0f"></a>kStatus_FLEXCAN_RxFifoOverflow&#160;</td><td class="fielddoc">
<p>Rx Message FIFO is overflowed. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba49de45608b1bef73b58f59b5aac6e459"></a>kStatus_FLEXCAN_RxFifoWarning&#160;</td><td class="fielddoc">
<p>Rx Message FIFO is almost overflowed. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba08579ac6bdc65a85046b33cd0d5d636a"></a>kStatus_FLEXCAN_ErrorStatus&#160;</td><td class="fielddoc">
<p>FlexCAN Module Error and Status. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga73b6375147061a131ec4d3959f2b950ba853b75a2a57e9d380ee85ab69da946cc"></a>kStatus_FLEXCAN_UnHandled&#160;</td><td class="fielddoc">
<p>UnHadled Interrupt asserted. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gaa0b3ac1e2e7416950b82014d2a2b40ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#gaa0b3ac1e2e7416950b82014d2a2b40ee">flexcan_clock_source_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN clock source. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggaa0b3ac1e2e7416950b82014d2a2b40eead9cb66012e8d50e9ee3e154a36c1cff1"></a>kFLEXCAN_ClkSrcOsc&#160;</td><td class="fielddoc">
<p>FlexCAN Protocol Engine clock from Oscillator. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaa0b3ac1e2e7416950b82014d2a2b40eea962bcf8760c6a23e054980b1d0c5a922"></a>kFLEXCAN_ClkSrcPeri&#160;</td><td class="fielddoc">
<p>FlexCAN Protocol Engine clock from Peripheral Clock. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga89e76f77a571693c1adeec47796c97df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#ga89e76f77a571693c1adeec47796c97df">flexcan_frame_format_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN frame format. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga89e76f77a571693c1adeec47796c97dfa82e576bc13cb647a948eed52564d109b"></a>kFLEXCAN_FrameFormatStandard&#160;</td><td class="fielddoc">
<p>Standard frame format attribute. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga89e76f77a571693c1adeec47796c97dfa2acf770880d063c0522a5cc762ab2638"></a>kFLEXCAN_FrameFormatExtend&#160;</td><td class="fielddoc">
<p>Extend frame format attribute. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gacec96742e2b0b51a5bf3246bfc57a455"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#gacec96742e2b0b51a5bf3246bfc57a455">flexcan_frame_type_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN frame type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggacec96742e2b0b51a5bf3246bfc57a455a650a94706925910caaaef592a99f77b3"></a>kFLEXCAN_FrameTypeData&#160;</td><td class="fielddoc">
<p>Data frame type attribute. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggacec96742e2b0b51a5bf3246bfc57a455ab8f92265dc2dadff64259080c78fa35e"></a>kFLEXCAN_FrameTypeRemote&#160;</td><td class="fielddoc">
<p>Remote frame type attribute. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga1b8c38cce54aff2f24b6cd45da80f353"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#ga1b8c38cce54aff2f24b6cd45da80f353">flexcan_rx_fifo_filter_type_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN Rx Fifo Filter type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga1b8c38cce54aff2f24b6cd45da80f353a1791608b19ef6a27483f55fee614f764"></a>kFLEXCAN_RxFifoFilterTypeA&#160;</td><td class="fielddoc">
<p>One full ID (standard and extended) per ID Filter element. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga1b8c38cce54aff2f24b6cd45da80f353a0989630ff89813979a12fd56e772073c"></a>kFLEXCAN_RxFifoFilterTypeB&#160;</td><td class="fielddoc">
<p>Two full standard IDs or two partial 14-bit ID slices per ID Filter Table element. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga1b8c38cce54aff2f24b6cd45da80f353ae4f020795b2ffb38eafb9a3648270a19"></a>kFLEXCAN_RxFifoFilterTypeC&#160;</td><td class="fielddoc">
<p>Four partial 8-bit Standard or extended ID slices per ID Filter Table element. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga1b8c38cce54aff2f24b6cd45da80f353a6b221467793b4268bf84cd475b92780d"></a>kFLEXCAN_RxFifoFilterTypeD&#160;</td><td class="fielddoc">
<p>All frames rejected. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga5d139af23e8c1094b39d1cf26d85271b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flexcan.html#ga5d139af23e8c1094b39d1cf26d85271b">flexcan_rx_fifo_priority_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN Rx FIFO priority. </p>
<p>The matching process will start from the Rx MB(or Rx FIFO) with higher priority. If no MB(or Rx FIFO filter) is satisfied, the matching process will go on with the Rx FIFO(or Rx MB) with lower priority. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga5d139af23e8c1094b39d1cf26d85271babc83bc44026aa8c9eef2a4b259e05ecd"></a>kFLEXCAN_RxFifoPrioLow&#160;</td><td class="fielddoc">
<p>Matching process start from Rx Message Buffer first </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga5d139af23e8c1094b39d1cf26d85271bac2b9710c6248536f992bdd832d05f8cf"></a>kFLEXCAN_RxFifoPrioHigh&#160;</td><td class="fielddoc">
<p>Matching process start from Rx FIFO first </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga800056b1b1ee4748d086329535e78274"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void FLEXCAN_ClearMbStatusFlags </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clear FlexCAN Message Buffer interrupt flags. </p>
<p>This function clear the interrupt flags of a given Message Buffers.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The ORed FlexCAN Message Buffer mask. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gace1fd2bc62b4f7c71d1fce292adf3b3a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void FLEXCAN_ClearStatusFlags </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clear status flags with provide mask. </p>
<p>This function clears FlexCAN status flags with provided mask. Automatically cleared flag can't be cleared by this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The status flags to be cleared, it is logical OR value of <a class="el" href="group__flexcan.html#gafcf014e17652c04821de5596f5c4f247">_flexcan_flags</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga0629aa8318a3e515dfb168004e0ce656"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_Deinit </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes a FlexCAN instance. </p>
<p>This function disable the FlexCAN module clock and set all register value to reset value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad6e220545b129d120fac805e8f9d82ab"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void FLEXCAN_DisableInterrupts </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disable FlexCAN interrupts according to provided mask. </p>
<p>This function disables the FlexCAN interrupts according to provided mask. The mask is a logical OR of enumeration members, see <a class="el" href="group__flexcan.html#ga339a68a513c218f67756e2a04985428e">_flexcan_interrupt_enable</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to disable. Logical OR of <a class="el" href="group__flexcan.html#ga339a68a513c218f67756e2a04985428e">_flexcan_interrupt_enable</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga78548c5ae0c0a4b2148712ef6aa770db"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void FLEXCAN_DisableMbInterrupts </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disable FlexCAN Message Buffer interrupts. </p>
<p>This function disable the interrupts of given Message Buffers</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The ORed FlexCAN Message Buffer mask. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga20f79302d5fad90306a26b667f58fe4d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void FLEXCAN_Enable </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disable the FlexCAN module operation. </p>
<p>This function enables or disables the FlexCAN module.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN base pointer. </td></tr>
    <tr><td class="paramname">enable</td><td>true to enable, false to disable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga406e9c07a20ed89504c5716f02efb957"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void FLEXCAN_EnableInterrupts </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable FlexCAN interrupts according to provided mask. </p>
<p>This function enables the FlexCAN interrupts according to provided mask. The mask is a logical OR of enumeration members, see <a class="el" href="group__flexcan.html#ga339a68a513c218f67756e2a04985428e">_flexcan_interrupt_enable</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to enable. Logical OR of <a class="el" href="group__flexcan.html#ga339a68a513c218f67756e2a04985428e">_flexcan_interrupt_enable</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga67840cca27caffb0247dd03c5c07d6de"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void FLEXCAN_EnableMbInterrupts </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable FlexCAN Message Buffer interrupts. </p>
<p>This function enable the interrupts of given Message Buffers</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The ORed FlexCAN Message Buffer mask. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gab3bf9b8856103be2045e5d5050b236d6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_EnableRxFifoDMA </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable or disable FlexCAN Rx FIFO DMA request. </p>
<p>This function enable or disable the DMA feature of FlexCAN build-in Rx FIFO.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">enable</td><td>true to enable, false to disable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6b042a7d31e057b96e16954d7342c9b4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void FlEXCAN_GetBusErrCount </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>txErrBuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>rxErrBuf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the FlexCAN Bus Error Counter value. </p>
<p>This function get the FlexCAN Bus Error Counter value for both Tx &amp; Rx direction. These values may needed in upper layer error handling.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">txErrBuf</td><td>Buffer to store Tx Error Counter value. </td></tr>
    <tr><td class="paramname">rxErrBuf</td><td>Buffer to store Rx Error Counter value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4eafdb971a92f517c69a80c15a216342"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_GetDefaultConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__config__t">flexcan_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the default configuration structure. </p>
<p>This function initializes the FlexCAN configure structure to default value. The default value are: flexcanConfig-&gt;clkSrc = KFLEXCAN_ClkSrcOsc; flexcanConfig-&gt;baudRate = 125000U; flexcanConfig-&gt;maxMbNum = 16; flexcanConfig-&gt;enableLoopBack = false; flexcanConfig-&gt;enableSelfWakeup = false; flexcanConfig-&gt;enableIndividMask = false; flexcanConfig-&gt;enableDoze = false;</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Pointer to FlexCAN configuration structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gab6ed94b8a36d174fb30d3256e3b2d975"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint64_t FLEXCAN_GetMbStatusFlags </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get FlexCAN Message Buffer interrupt flags. </p>
<p>This function get interrupt flags of a given Message Buffers.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The ORed FlexCAN Message Buffer mask. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status of given Message Buffers. </dd></dl>

</div>
</div>
<a class="anchor" id="ga5391b69b149d1e640e52807eb96a08ef"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t FLEXCAN_GetRxFifoHeadAddr </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the Rx FIFO Head address. </p>
<p>This function return the FlexCAN Rx FIFO Head address, which is mainly used by DMA/eDMA case.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FlexCAN Rx FIFO Head address. </dd></dl>

</div>
</div>
<a class="anchor" id="ga46217b1ae979c927ae59b98fbbb181e3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t FLEXCAN_GetStatusFlags </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get FlexCAN module interrupt flags. </p>
<p>This function get all FlexCAN status flags, the flags are returned as the logical OR value of the enumerators <a class="el" href="group__flexcan.html#gafcf014e17652c04821de5596f5c4f247">_flexcan_flags</a>. To check specific status, compare the return value with enumerators in <a class="el" href="group__flexcan.html#gafcf014e17652c04821de5596f5c4f247">_flexcan_flags</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FlexCAN status flags which are ORed by the enumerators in the _flexcan_flags. </dd></dl>

</div>
</div>
<a class="anchor" id="ga8d7ebf086fb294130fa30a0f75a5f340"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_Init </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__flexcan.html#structflexcan__config__t">flexcan_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>sourceClock_Hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes a FlexCAN instance. </p>
<p>This function initializes the FlexCAN module with user-defined settings. This example shows how to set up the <a class="el" href="group__flexcan.html#structflexcan__config__t" title="FlexCAN module configuration structure. ">flexcan_config_t</a> parameters and how to call the FLEXCAN_Init function by passing in these parameters: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;flexcan_config_t flexcanConfig;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;flexcanConfig.clkSrc            = KFLEXCAN_ClkSrcOsc;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;flexcanConfig.baudRate          = 125000U;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;flexcanConfig.maxMbNum          = 16;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;flexcanConfig.enableLoopBack    = false;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;flexcanConfig.enableSelfWakeup  = false;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;flexcanConfig.enableIndividMask = false;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;flexcanConfig.enableDoze        = false;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;FLEXCAN_Init(CAN0, &amp;flexcanConfig, 8000000UL);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">config</td><td>Pointer to user-defined configuration structure. </td></tr>
    <tr><td class="paramname">sourceClock_Hz</td><td>FlexCAN Protocol Engine clock source frequency in Hz. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga0f74840527f5e882c72746315bc06576"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FlEXCAN_ReadRxFifo </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *&#160;</td>
          <td class="paramname"><em>rxFrame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a FlexCAN Message from Rx FIFO. </p>
<p>This function Read a CAN message from the FlexCAN build-in Rx FIFO.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">rxFrame</td><td>Pointer to CAN message frame structure for reception. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>- Read Message from Rx FIFO successfully. </td></tr>
    <tr><td class="paramname">kStatus_Fail</td><td>- Rx FIFO is not enabled. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga93600de1691b5e6d8cc01e06efee7b68"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FLEXCAN_ReadRxMb </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mbIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *&#160;</td>
          <td class="paramname"><em>rxFrame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a FlexCAN Message from Receive Message Buffer. </p>
<p>This function read a CAN message from a specified Receive Message Buffer. The function will fill receive CAN message frame structure with just received data and activate the Message Buffer again. The function will return immediately.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mbIdx</td><td>The FlexCAN Message Buffer index. </td></tr>
    <tr><td class="paramname">rxFrame</td><td>Pointer to CAN message frame structure for reception. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>- Rx Message Buffer is full and has been read successfully. </td></tr>
    <tr><td class="paramname">kStatus_FLEXCAN_RxOverflow</td><td>- Rx Message Buffer is already overflowed and has been read successfully. </td></tr>
    <tr><td class="paramname">kStatus_Fail</td><td>- Rx Message Buffer is empty. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga40140a86bc8481442286a61aa668d508"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FlEXCAN_SetRxFifoConfig </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__flexcan.html#structflexcan__rx__fifo__config__t">flexcan_rx_fifo_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure the FlexCAN Rx FIFO. </p>
<p>This function Configure the Rx FIFO with given Rx FIFO configuration.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">config</td><td>Pointer to FlexCAN Rx FIFO configuration structure. </td></tr>
    <tr><td class="paramname">enable</td><td>Enable/Disable Rx FIFO.<ul>
<li>true: Enable Rx FIFO.</li>
<li>false: Disable Rx FIFO. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6916d2efb57c72bc39450728d63eda2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FlEXCAN_SetRxFifoGlobalMask </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the FlexCAN Receive FIFO Global Mask. </p>
<p>This function Set the global mask for FlexCAN FIFO in matching process.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>Rx Fifo Global Mask value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4e097e264335f27dc55f20c4eb836a94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FlEXCAN_SetRxIndividualMask </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>maskIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the FlexCAN Receive Individual Mask. </p>
<p>This function Set the Individual mask for FlexCAN matching process. The configuration is only effective when Rx Individual Mask is enabled in <a class="el" href="group__flexcan.html#ga8d7ebf086fb294130fa30a0f75a5f340" title="Initializes a FlexCAN instance. ">FLEXCAN_Init()</a>. If Rx FIFO is disabled, the Individual Mask is applied to corresponding Message Buffer. If Rx FIFO is enabled, the Individual Mask for Rx FIFO occupied Message Buffer will be applied to Rx Filter with same index. What calls for special attention is that only the first 32 Individual Mask can be used as Rx FIFO Filter Mask.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">maskIdx</td><td>The Index of individual Mask. </td></tr>
    <tr><td class="paramname">mask</td><td>Rx Individual Mask value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf335daf0156fab50571e55d2898bccb2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_SetRxMbConfig </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mbIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__flexcan.html#structflexcan__rx__mb__config__t">flexcan_rx_mb_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure a FlexCAN Receive Message Buffer. </p>
<p>This function clean a FlexCAN build-in Message Buffer and configure it as a Receive Message Buffer.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mbIdx</td><td>The Message Buffer index. </td></tr>
    <tr><td class="paramname">config</td><td>Pointer to FlexCAN Message Buffer configuration structure. </td></tr>
    <tr><td class="paramname">enable</td><td>Enable/Disable Rx Message Buffer.<ul>
<li>true: Enable Rx Message Buffer.</li>
<li>false: Disable Rx Message Buffer. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga188e40d55493a20e7e11215d23369f94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FlEXCAN_SetRxMbGlobalMask </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the FlexCAN Receive Message Buffer Global Mask. </p>
<p>This function Set the global mask for FlexCAN Message Buffer in matching process. The configuration is only effective when Rx Individual Mask is disabled in <a class="el" href="group__flexcan.html#ga8d7ebf086fb294130fa30a0f75a5f340" title="Initializes a FlexCAN instance. ">FLEXCAN_Init()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>Rx Message Buffer Global Mask value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga481abb41cf9d87c7b4a901dd61e34f82"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_SetTimingConfig </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__flexcan.html#structflexcan__timing__config__t">flexcan_timing_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setting FlexCAN protocol timing characteristic. </p>
<p>This function give user fine settings to CAN bus timing characteristic. The function is for user who is really versed in CAN protocol, for these users who just what to establish CAN communication among MCUs, just call <a class="el" href="group__flexcan.html#ga8d7ebf086fb294130fa30a0f75a5f340" title="Initializes a FlexCAN instance. ">FLEXCAN_Init()</a> and fill the baud rate field with desired one. Doing this, default timing characteristic will provide to the module.</p>
<p>Note: Calling <a class="el" href="group__flexcan.html#ga481abb41cf9d87c7b4a901dd61e34f82" title="Setting FlexCAN protocol timing characteristic. ">FLEXCAN_SetTimingConfig()</a> will override the baud rate setted in <a class="el" href="group__flexcan.html#ga8d7ebf086fb294130fa30a0f75a5f340" title="Initializes a FlexCAN instance. ">FLEXCAN_Init()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">config</td><td>Pointer to the timing configuration structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gadbf35cc05ed0d9a73eda5ac4fbb30ff0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_SetTxMbConfig </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mbIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure a FlexCAN Transmit Message Buffer. </p>
<p>This function abort privious transmission, clean the Message Buffer and configure it as a Transmit Message Buffer.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mbIdx</td><td>The Message Buffer index. </td></tr>
    <tr><td class="paramname">enable</td><td>Enable/Disable Tx Message Buffer.<ul>
<li>true: Enable Tx Message Buffer.</li>
<li>false: Disable Tx Message Buffer. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga96d909308b07c826b8123b45bf46e2e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_TransferAbortReceive </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">flexcan_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mbIdx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Abort interrupt driven message receive process. </p>
<p>This function abort interrupt driven message receive process.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>FlexCAN handle pointer. </td></tr>
    <tr><td class="paramname">mbIdx</td><td>The FlexCAN Message Buffer index. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga9ff071840674c2b3f2e1667e5d0400ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_TransferAbortReceiveFifo </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">flexcan_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Abort interrupt driven message receive from Rx FIFO process. </p>
<p>This function abort interrupt driven message receive from Rx FIFO process.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>FlexCAN handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gab1bb142ae44f89723de55aed6879d311"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_TransferAbortSend </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">flexcan_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mbIdx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Abort interrupt driven message send process. </p>
<p>This function aborts interrupt driven message send process.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>FlexCAN handle pointer. </td></tr>
    <tr><td class="paramname">mbIdx</td><td>The FlexCAN Message Buffer index. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaca661014e03aa709a753a3c499ecba19"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_TransferCreateHandle </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">flexcan_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#ga4df171e52fae160f2e48257b864ce2e9">flexcan_transfer_callback_t</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize the FlexCAN handle. </p>
<p>This function initializes the FlexCAN handle which can be used for other FlexCAN transactional APIs. Usually, for a specified FlexCAN instance, user only need to call this API once to get the initialized handle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>FlexCAN handle pointer. </td></tr>
    <tr><td class="paramname">callback</td><td>The callback function. </td></tr>
    <tr><td class="paramname">userData</td><td>The parameter of the callback function. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga929cb775ee9a363295feef9cb06c2425"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLEXCAN_TransferHandleIRQ </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">flexcan_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FlexCAN IRQ handle function. </p>
<p>This function handles the FlexCAN Error, Message Buffer and Rx FIFO IRQ request.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>FlexCAN handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gafaa8ec3bde747737139a4cfc64c64c61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FlEXCAN_TransferReceiveBlocking </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mbIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *&#160;</td>
          <td class="paramname"><em>rxFrame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs a polling receive transaction on the CAN bus. </p>
<p>Note: There is no need to create transfer handle before calling this API.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base pointer. </td></tr>
    <tr><td class="paramname">mbIdx</td><td>The FlexCAN Message Buffer index. </td></tr>
    <tr><td class="paramname">rxFrame</td><td>Pointer to CAN message frame structure for reception. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>- Rx Message Buffer is full and has been read successfully. </td></tr>
    <tr><td class="paramname">kStatus_FLEXCAN_RxOverflow</td><td>- Rx Message Buffer is already overflowed and has been read successfully. </td></tr>
    <tr><td class="paramname">kStatus_Fail</td><td>- Rx Message Buffer is empty. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga59891932ccc6001fa5a67b0b5a592367"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FlEXCAN_TransferReceiveFifoBlocking </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *&#160;</td>
          <td class="paramname"><em>rxFrame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs a polling receive transaction from Rx FIFO on the CAN bus. </p>
<p>Note: There is no need to create transfer handle before calling this API.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base pointer. </td></tr>
    <tr><td class="paramname">rxFrame</td><td>Pointer to CAN message frame structure for reception. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>- Read Message from Rx FIFO successfully. </td></tr>
    <tr><td class="paramname">kStatus_Fail</td><td>- Rx FIFO is not enabled. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf47e1a71184fa3079d02a81e2def72cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FLEXCAN_TransferReceiveFifoNonBlocking </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">flexcan_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__fifo__transfer__t">flexcan_fifo_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>xfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Receive message from Rx FIFO using IRQ. </p>
<p>This function receive message using IRQ, this is non-blocking function, will return right away, when all messages have been received, the receive callback function will be called.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>FlexCAN handle pointer. </td></tr>
    <tr><td class="paramname">xfer</td><td>FlexCAN Rx FIFO transfer structure, refer to <a class="el" href="group__flexcan.html#structflexcan__fifo__transfer__t">flexcan_fifo_transfer_t</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>- Start Rx FIFO receiving process successfully. </td></tr>
    <tr><td class="paramname">kStatus_FLEXCAN_RxFifoBusy</td><td>- Rx FIFO is currently in use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga8f41d066f0898128a09ef2218eee6618"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FLEXCAN_TransferReceiveNonBlocking </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">flexcan_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__mb__transfer__t">flexcan_mb_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>xfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Receive message using IRQ. </p>
<p>This function receive message using IRQ, this is non-blocking function, will return right away, when message have been received, the receive callback function will be called.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>FlexCAN handle pointer. </td></tr>
    <tr><td class="paramname">xfer</td><td>FlexCAN Message Buffer transfer structure, refer to <a class="el" href="group__flexcan.html#structflexcan__mb__transfer__t" title="FlexCAN Message Buffer transfer. ">flexcan_mb_transfer_t</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>- Start Rx Message Buffer receiving process successfully. </td></tr>
    <tr><td class="paramname">kStatus_FLEXCAN_RxBusy</td><td>- Rx Message Buffer is in use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac360f0cee2cf46a682ae1fc2d63958d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FlEXCAN_TransferSendBlocking </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mbIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *&#160;</td>
          <td class="paramname"><em>txFrame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs a polling send transaction on the CAN bus. </p>
<p>Note: There is no need to create transfer handle before calling this API.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base pointer. </td></tr>
    <tr><td class="paramname">mbIdx</td><td>The FlexCAN Message Buffer index. </td></tr>
    <tr><td class="paramname">txFrame</td><td>Pointer to CAN message frame to be sent. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>- Write Tx Message Buffer Successfully. </td></tr>
    <tr><td class="paramname">kStatus_Fail</td><td>- Tx Message Buffer is currently in use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga8497b4572e60df692d193e2329993e5f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FLEXCAN_TransferSendNonBlocking </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">flexcan_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flexcan.html#structflexcan__mb__transfer__t">flexcan_mb_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>xfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>send message using IRQ </p>
<p>This function send message using IRQ, this is non-blocking function, will return right away, when message have been sent out, the send callback function will be called.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>FlexCAN handle pointer. </td></tr>
    <tr><td class="paramname">xfer</td><td>FlexCAN Message Buffer transfer structure, refer to <a class="el" href="group__flexcan.html#structflexcan__mb__transfer__t" title="FlexCAN Message Buffer transfer. ">flexcan_mb_transfer_t</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>Start Tx Message Buffer sending process successfully. </td></tr>
    <tr><td class="paramname">kStatus_Fail</td><td>Write Tx Message Buffer failed. </td></tr>
    <tr><td class="paramname">kStatus_FLEXCAN_TxBusy</td><td>Tx Message Buffer is in use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga9ee9d599069a88a50cb7c7a894c87c69"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> FLEXCAN_WriteTxMb </td>
          <td>(</td>
          <td class="paramtype">CAN_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mbIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__flexcan.html#structflexcan__frame__t">flexcan_frame_t</a> *&#160;</td>
          <td class="paramname"><em>txFrame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write FlexCAN Message to Transmit Message Buffer. </p>
<p>This function write a CAN Message to the specified Transmit Message Buffer and change the Message Buffer state to start CAN Message transmit, after that the function will return immediately.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>FlexCAN peripheral base address. </td></tr>
    <tr><td class="paramname">mbIdx</td><td>The FlexCAN Message Buffer index. </td></tr>
    <tr><td class="paramname">txFrame</td><td>Pointer to CAN message frame to be sent. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>- Write Tx Message Buffer Successfully. </td></tr>
    <tr><td class="paramname">kStatus_Fail</td><td>- Tx Message Buffer is currently in use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="ga92ba1ed8d52757a597eb45fa5bf4329a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void uint32_t mask</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">{</div><div class="line"><span class="preprocessor">#if (defined(FSL_FEATURE_FLEXCAN_HAS_EXTENDED_FLAG_REGISTER)) &amp;&amp; (FSL_FEATURE_FLEXCAN_HAS_EXTENDED_FLAG_REGISTER &gt; 0)</span></div><div class="line"><span class="preprocessor">    return ((((uint64_t)base-&gt;IFLAG1) &amp; mask) | ((((uint64_t)base-&gt;IFLAG2) &lt;&lt; 32) &amp; mask))</span></div></div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
